<LayoutEditFormBox :loading="load">

    <template slot="main">
        <el-form ref="editForm" :model="form" label-width="120px" label-position="left">
            <LayoutCell>
                <LayoutCellItem title="排行榜设置">
                    <el-form-item label="排行榜状态" prop="status" :rules="{ required: true, message: '请选择排行榜设置'}">
                        <el-radio-group v-model="form.status">
                            <el-radio :label="true">开启</el-radio>
                            <el-radio :label="false">关闭</el-radio>
                        </el-radio-group>
                    </el-form-item>
                    

                </LayoutCellItem>
                <LayoutCellItem title="排行榜类型">
                    <el-form-item label="排行榜类型" prop="type" :rules="{ required: true, message: '请选择'}">
                        <el-radio-group v-model="form.type">
                            <el-radio :label="1">按累计佣金</el-radio>
                            <el-radio :label="2">按已提现佣金</el-radio>
                        </el-radio-group>
                    </el-form-item>

                    <el-form-item label="" prop="num" :rules="{ required: true, message: '不能为空'}">
                        <el-input style="width: 400px;" maxlength="10" v-model="form.num"><template slot="prepend">排行榜显示数量</template></el-input>
                    </el-form-item>
                </LayoutCellItem>
            </LayoutCell>
        </el-form>
    </template>
    <template slot="footer">
        <el-button type="primary" @click="sum()">确定</el-button>
    </template>

</LayoutEditFormBox>